\message{ !name(test.tex)}\documentclass{article}
\usepackage{amsfonts}
\input{preamble.tex}

\begin{document}

\message{ !name(test.tex) !offset(-3) }

%\mathbb{E}_\bZ[\ln
%p(\bX,\bZ|\btheta)]=\displaystyle\sum_\bZp(\bZ|\bX,\btheta^\text{old})\lnp(\bX,\bZ|\btheta)\mathbb{Q}(\btheta,\btheta^\text{old}) 
$\max$,,
$\btheta^\text{new}=\text{arg} \max_\btheta\calq(\btheta,\btheta^\text{old})$,
\begin{tikzpicture}[node distance=2cm]
  
    \node (1) [] {$\btheta^\text{old}$};
    \node (2) [below of=1] {$p(\bZ|\bX,\btheta^\text{old})$};
    \node (3) [below of=2] {1};
    \node (4) [below of=3] {2};
    \end{tikzpicture}
\end{document}
\message{ !name(test.tex) !offset(-21) }
